<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1.0,user-scalable=no;">
		<title></title>
		<link rel="stylesheet" href="/Public/Wap/hpf/css/Hpfstyle.css" />
        <link rel="stylesheet" href="/Public/Wap/hpf/css/banner.css" />
		<script type="text/javascript" src="/Public/Wap/hpf/css/iscroll.js"></script>
		<script type="text/javascript" src="/Public/Wap/hpf/css/jQuery.js"></script>
		<style>
		  	.shXq .scroll_pic_nav{background-color:transparent;}
		  	.shXqFoot{position: fixed; bottom: 0;left: 0; width: 100%;}
			.shXqRi .tel{width: 1.6em;height: 1.6em;display: inline-block;margin-top: 0.4em}
			.shXqRi img{width: 1.6em;height: 1.7em;}
		</style>
	</head>
	<body style="background-color: #f1f1f1;">
		<div class="shXq">
			<div class="wraper">
				<header id="scroll_pic_view" class="scroll_pic_view" style="overflow: hidden;">
					<div id="scroll_pic_view_div" style="width: 3840px; -webkit-transition: transform 0ms cubic-bezier(0.33, 0.66, 0.66, 1); transition: transform 0ms cubic-bezier(0.33, 0.66, 0.66, 1); -webkit-transform-origin: 0px 0px 0px; -webkit-transform: translate(0px, 0px) translateZ(0px); transform-origin: 0px 0px 0px; transform: translate(-1920px, 0px) scale(1) translateZ(0px);">
						<ul id="scroll_pic_view_ul">
                            <volist name="info.pic"  id="vo">
                                <li style="width: 100%;">
                                    <img src="{$vo|get_cover='path'}"/>
                                </li>
                            </volist>
						</ul>
					</div>
					<div>
						<ol id="scroll_pic_nav" class="scroll_pic_nav">
							<script>
								(function(d, $){
									var scrollPicView = d.getElementById("scroll_pic_view"),
									scrollPicViewDiv = d.getElementById("scroll_pic_view_div"),
									lis = scrollPicViewDiv.querySelectorAll("li"),
									w = scrollPicView.offsetWidth,
									len = lis.length;
									for(var i=0; i<len; i++){
										lis[i].style.width = w+"px";
										if(i == len-1){
											scrollPicViewDiv.style.width = w * len + "px";
										}
									}
				
									var scroll_pic_view = new iScroll('scroll_pic_view', { 
										snap: true,
										momentum: false,
										hScrollbar: false,
										useTransition: true,
										onScrollEnd: function() {
											$("#scroll_pic_nav li").removeClass("on").eq(this.currPageX).addClass("on");
											//$("#scroll_pic_nav li.on").prev().addClass("left");
											//$("#scroll_pic_nav li.on").next().removeClass("left");	
											
											var  list=$("#scroll_pic_nav li");
											for(var k=0;k<list.length;k++){
												if(k<this.currPageX)
													$(list[k]).addClass("left");
												else
													$(list[k]).removeClass("left");
											}												
										}
									});
									//
									var nav_lis = new Array(lis.length);
									d.write('<li class="on"><span></span></li>');
									for(var i=1; i<nav_lis.length; i++){										
										d.write("<li><span></span></li>");				
									}
								})(document, $);
                                function collect(tid){
                                    $.get("{:U('Designer/collect')}", {tid: tid,type:2}, function (r) {
                                        alert(r.info);
                                            if(r.status){
                                                window.location.reload();
                                            }
                                    });
                                }
							</script>
						</ol>
					</div>
				</header>
			</div>
			<div class="shXq1">
				<div class="shXqLeft">
					<label>{$info.pname}</label>
					<div class="shXq2">
						<span>￥{$info.price}元</span>
						<span>￥{$info.old_price}元</span>
					</div>
				</div>
				<div class="shXqRi">
					<span <if condition="$iscollect">class="shXqRiBg" </if> onclick="collect('{$info.id}')"></span>
					<label><a href="tel:{$info.phone}" class="tel"><img src="/Public/Member/images/ico-tel.png"/></a></label>
				</div>
			</div>
			<div class="shXqButt">
				<label>产品描述</label>
                {$info.content}
			</div>
		</div>


		<div class="shXqFoot">
				<img src="/Public/Wap/hpf/images/jqqd.jpg"/>
		</div>
	</body>
</html>
